<form class="jc-search form-inline searchForm" action="{:U('Admin/Airway/trip')}" method="post">

    <div class="form-group">
        <label class="control-label">旅客名称:</label>
        <select class="form-control" name="user_id" id="user_id" style="width: 150px;">
            <option value="">全部</option>
        </select>
    </div>

    <div class="form-group">
        <label>客票号:</label>
        <input type="text" class="form-control" name="ticket_id" value="{$ticket_id}" placeholder="">
    </div>

    <div class="form-group">
        <label class="control-label">发布日期:</label>
        <div class="input-group date" id="trip_from_date">
            <input type='text' value="<if condition="$trip_from_date">{$trip_from_date|date="Y-m-d",###}</if>" name="trip_from_date" class="form-control" data-date-format="yyyy-mm-dd" style="width:125px;" />
            <div class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </div>
        </div>
        -
        <div class="input-group date" id="trip_to_date">
            <input type='text' value="<if condition="$trip_to_date">{$trip_to_date|date="Y-m-d",###}</if>" name="trip_to_date" class="form-control" data-date-format="yyyy-mm-dd" style="width:125px;" />
            <div class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label">行程状态:</label>
        <select class="form-control" name="state">
            <option value="" <if condition="$state eq ''">selected</if>>全部</option>
            <option value="0" <if condition="$state eq '0'">selected</if>>审核中</option>
            <option value="1" <if condition="$state eq '1'">selected</if>>接单中</option>
            <option value="2" <if condition="$state eq '2'">selected</if>>订单已满</option>
            <option value="3" <if condition="$state eq '3'">selected</if>>接单结束</option>
            <option value="4" <if condition="$state eq '4'">selected</if>>已暂停接单</option>
            <option value="5" <if condition="$state eq '5'">selected</if>>已关闭</option>
            <option value="6" <if condition="$state eq '6'">selected</if>>已删除</option>

        </select>
    </div>

    <input class="btn btn-search" type="submit" value="搜索" />
</form>